package basics;

/**
 * 测试类的初始化顺序
 *
 * @Author: zhenzhong.wang
 * @Time: 2018/4/24 18:24
 */
public class Demo5 extends A1 {

  static {
    A1 a1 = new A1();
  }

  A1 a = new A1();

  public static void main(String[] args) {
    new Demo5();
    System.out.println();
    new Demo5();
  }
}

class A1 {

  public A1() {
    System.out.println("A1");
  }
}
